package com.itsq.service.resources;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itsq.pojo.dto.PageDepartmentDto;
import com.itsq.pojo.dto.PagePersonnelDto;
import com.itsq.pojo.dto.PersonnelDto;
import com.itsq.pojo.entity.Department;
import com.itsq.pojo.entity.Personnel;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 史先帅
 * @since 2021-01-30
 */
public interface PersonnelService extends IService<Personnel> {

    public Page<Personnel> selPersonnelPageFront(PagePersonnelDto pagePersonnelDto);

    public Page<Personnel> selPersonnelPageAfter(PagePersonnelDto pagePersonnelDto);

    public PersonnelDto selPersonnelByUserId(Integer userId);

    public PersonnelDto insert(PersonnelDto personnel);

    public Integer update(Personnel personnel);

    public Integer updateIsOk(Personnel personnel);

    public Integer delete(Integer id);
}
